{include file="head" /}



<!-- 编辑器引入结束 -->

{include file="menu" /}


<!--main content start-->
<section id="main-content">
    <section class="wrapper">


        <div class="row">
            <div class="col-sm-12">
                <aside class="profile-info col-lg-9">
                    <section class="panel">

                        <div class="panel-body bio-graph-info">
                            <h1> 添加banner</h1>
                            <form class="form-horizontal" role="form" method="post" id="formid">

                                <div class="form-group">
                                    <label class="col-lg-2 control-label">banner名称</label>
                                    <div class="col-lg-6">
                                        <input type="text" class="form-control" name="bannername"  value=""  >
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-lg-2 control-label">banner跳转链接</label>
                                    <div class="col-lg-6">
                                        <input type="text" class="form-control" name="bannerurl"  value=""  >
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-lg-3 control-label">banner图片：</label>
                                    <div class="col-lg-6">
                                        <img src="{@$bannersrc}" width="200" height="200">
                                        <input name="bannersrc" type="file" />  图片大小200x200px
                                        <br/>
                                    </div>

                                </div>




                                <div class="form-group">
                                    <div class="col-lg-offset-2 col-lg-10">
                                        <input type="submit" value="提交"  onclick="return editcon(this.form)" class="btn btn-success">

                                    </div>
                                </div>

                            </form>
                        </div>
                    </section>

                </aside>
            </div>

        </div>




    </section>
</section>
<!--main content end-->
</section>


{include file="foot" /}
<script type="text/javascript" src="/static/public/umeditor/umindex.js"></script>
<script>

    function editcon(form){


        var otype = "{:input('param.otype')}";
        var type = "{$isedit?$isedit:'0'}";

        var nickname = form.nickname.value;
        var upwd = form.upwd.value;
        var upwd2 = form.upwd2.value;


        var formurl = "{:Url('system/adminadd')}";
        var data = $('#formid').serialize();
        var locurl = "{:Url('system/adminlist')}";

        WPpost(formurl,data,locurl);

        return false;
    }


</script>
